import { createApp } from 'vue'
import './style.css'
import '@/assets/styles/QuanJu.css' // 引入全局样式
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia' // 引入 Pinia状态管理器，存储token
//导入持久化插件
import {createPersistedState} from'pinia-persistedstate-plugin'
// 引入 Element Plus
import ElementPlus from 'element-plus'
//使用中文语言包，解决分页条中文问题
import locale from 'element-plus/dist/locale/zh-cn.js'
import 'element-plus/dist/index.css'

const app = createApp(App)
const pinia = createPinia()
const persist = createPersistedState()
app.use(ElementPlus, { locale })
app.use(router)
pinia.use(persist)
app.use(pinia)

app.mount('#app')
